package core.schedule.snake.data.domain;

public class TaskResult {
	
	private boolean executeFlag=true;
	
	private String executeDesc="执行完成";
	
	private int insertCount=0;
	
	private int updateCount=0;
	

	public TaskResult() {
		super();
	}
	
	
	public String toString() {
		
		String result=executeFlag?"成功":"异常";
		result=result+"  结果描述："+executeDesc;
		return result;
		
	}

	public TaskResult(boolean executeFlag, String executeDesc) {
		super();
		this.executeFlag = executeFlag;
		this.executeDesc = executeDesc;
	}

	public boolean isExecuteFlag() {
		return executeFlag;
	}

	public void setExecuteFlag(boolean executeFlag) {
		this.executeFlag = executeFlag;
	}

	public String getExecuteDesc() {
		return executeDesc;
	}

	public void setExecuteDesc(String executeDesc) {
		this.executeDesc = executeDesc;
	}


	public int getInsertCount() {
		return insertCount;
	}


	public void setInsertCount(int insertCount) {
		this.insertCount = insertCount;
	}


	public int getUpdateCount() {
		return updateCount;
	}


	public void setUpdateCount(int updateCount) {
		this.updateCount = updateCount;
	}
	

}